package com.entity.vo;

import com.entity.Orders;
import com.entity.Product;
import com.ymx.darling.bean.annotation.Entity;
import com.ymx.darling.executor.mapping.relation.annotation.RelationOneToOne;
import lombok.Data;

@Data
@Entity(entityDef = Orders.class)
public class OrderVo {
    private long id;
    private long productId;
    private String userId;
    private String createTime;
    private int tId;
    @RelationOneToOne(selfField = "id", targetField = "id")
    private Product product;
}
